#!/usr/bin/env ruby

def num_palindrome(i1, i2)
  # code your solution here
end

ex_op = [[["1", "1"], ["3", "11"], ["5", "101"], ["7", "111"],
          ["9", "1001"], ["33", "100001"], ["99", "1100011"],
          ["313", "100111001"], ["585", "1001001001"], ["717", "1011001101"]],
         [["1", "1", "1"], ["3", "11", "3"], ["5", "101", "5"],
          ["7", "111", "7"], ["9", "1001", "11"],
          ["585", "1001001001", "1111"]]]

raise unless num_palindrome(1, 1000) == ex_op

puts 'Test passed'
